﻿
function ShowMenu(MenuID) {
    if ($("#" + MenuID).is(":hidden")) {
        $("#" + MenuID).show();
    } else {
        $("#" + MenuID).hide();
    }

}
function ShowMenu1(MenuID) {
    if (MenuID.style.display == "none") {
        MenuID.style.display = "";

    } else {
        MenuID.style.display = "none";

    }
}

function changeimage(imageID) {
    var r, re;         //Declare variables.

    re = 'closedfold.gif';    //Create regular expression pattern.
    r = imageID.src;  //Attempt match on search string.
    a = r.match(re);
    if (a == null) {
        imageID.src = " ../App_Themes/Classic/images/openfold.gif";
    } else {
        imageID.src = "../App_Themes/Classic/images/closedfold.gif";
    }


}

$(document).ready(function () {
    parent.$("#showmenu").hide();
    $("#tree_panel").ajaxComplete(function (event, request, settings) {
        parent.setLeftToolWidthAndHeight();
    });

});